package com.example.lzy.activitystartupshutdown.Page_pass_value;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

import com.example.lzy.activitystartupshutdown.R;

public class Main4Activity extends AppCompatActivity {

    private TextView name = null;
    private TextView pwd = null;
    private TextView sex = null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main4);

        Intent intent = getIntent();
        String names = intent.getStringExtra("name");
        String sexs = intent.getStringExtra("sex");
        String pwds = intent.getStringExtra("pwd");

        name = (TextView) findViewById(R.id.name_text);
        pwd = (TextView) findViewById(R.id.pwd_text);
        sex = (TextView) findViewById(R.id.sex_text);

        name.setText("用户名:"+names);
        pwd.setText("密码:"+pwds);
        sex.setText("性别:"+sexs);
    }
}
